//
//  HomeCollectionViewCell.m
//  HMMarket
//
//  Created by 孙鹏飞 on 2017/5/8.
//  Copyright © 2017年 homai. All rights reserved.
//

#import "HomeCollectionViewCell.h"
#import "HomeCategory.h"

@interface HomeCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *name;
@end

@implementation HomeCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setCate:(HomeCategoryDetail *)cate
{
    _cate = cate;
    
    [_icon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kImageUrl,_cate.pic]] placeholderImage:[UIImage imageWithColor:kBackGolor]];
    _name.text = _cate.cat_name;
}

@end
